﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

namespace AspNetCoreWeb.Infrastructure.Extensions
{
    public static class DbContextOptionsBuilderExtensions
    {
        public static void UseSqlServerWithLazyLoading(this DbContextOptionsBuilder optionsBuilder, IServiceCollection services)
        {

            optionsBuilder.UseSqlServer("Password=Sqladmin;Persist Security Info=True;User ID=sa;Initial Catalog=MetaNet_KXJSYJY;Data Source=127.0.0.1");
        }
    }
}
